﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FanaticRock.Core.ServiceInterfaces
{

    ///<summary>简易的存储服务。</summary>
    public interface ICacheStorageService
    {
        T Get<T>();

        T Get<T>(string id);

        void Set<T>(T obj);

        void Set<T>(string id, T obj);

        IEnumerable<KeyValuePair<string, T>> GetAll<T>();
    }
}
